<template>
<div class="mui-content" @click="goTo">
  <div class="left"><img class='img' :src="path"/></div>
  <div class="title">{{title}}</div>
  <div class="phone mui-text-right">{{text}} {{phone}}</div>
  <div class="mui-icon mui-icon-arrowright right"></div>
</div>
</template>

<script>
    export default {
        name: "PersonInfo.vue",
      data(){
          return{


          }
      },
      props:{
        path:String,
        title:String,
        phone:String,
        text:String,
      },
      methods:{
        goTo(){
          this.$emit('goTo')
        },
        // ImgSrc(src){
        //   return "background-image: url(" + src + ");"
        //
        // },

      },
      created(){

      }
    }
</script>

<style scoped>
  .mui-content {
    display: flex;
    height: 50px;
    line-height: 50px;
    background-color: white;
    border-bottom: 1px solid #dfdfdf;
    padding-left: 2%;

  }
  .mui-content .left{
    flex: 0 0 36.5px;
    /*margin: 0.75rem 0;*/
  }
  .mui-content .left .img{
    width: 1.3rem;
    height: 1.2rem;
    margin: 0.9rem 0rem 0rem 0.3rem;
  }
  .mui-content .title{
    /*width: 30%;*/
    flex: 0 0 100px;
  }
  .mui-content .phone{
    /*width: 50%;*/
    flex: 1;
    font-size: 0.9rem;
    height:50px ;
    line-height: 50px;
    color: #8f8f94;
    overflow: hidden;
  }
  .mui-content .right{
    width: 8%;
    margin: 0.75rem 0;
  }
  .yellow{
    color: yellow;
  }
  .red{
    color: red;
  }
  .green{
    color: green;
  }
  .blue{
    color: blue;
  }

</style>
